interface ISettings {
  title: string // Overrides the default title
  showSettings: boolean // Controls settings panel display
  showTagsView: boolean // Controls tagsview display
  showSidebarLogo: boolean // Controls siderbar logo display
  fixedHeader: boolean // If true, will fix the header component
  errorLog: string[] // The env to enable the errorlog component, default 'production' only
  sidebarTextTheme: boolean // If true, will change active text color for sidebar based on theme
  devServerPort: number // Port number for webpack-dev-server
  mockServerPort: number // Port number for mock server
  projectCodeList: string[]
  multiplexComp: any[] // 多复用组件
  tableWidth: any
}

// You can customize below settings :)
const settings: ISettings = {
  title: 'Vue Typescript Admin',
  showSettings: true,
  showTagsView: true,
  fixedHeader: false,
  showSidebarLogo: false,
  errorLog: ['production'],
  sidebarTextTheme: true,
  devServerPort: 9527,
  mockServerPort: 9528,
  projectCodeList: ['360', 'standard'],
  multiplexComp: [
    {
      path: '/report/list/index',
      regExp: /^\/report\/list\/index(\/[a-zA-Z0-9_]+)*$/
    },

    {
      path: '/error-page/401',
      regExp: /^\/unauthorized(\/[a-zA-Z0-9_]+)*$/
    }
  ],
  tableWidth: {
    name: 80,
    certNo: 150,
    mobile: 110,
    channel: 130,
    timeYMS: 150,
    status: 90,
    amount: 160,
    productNo: 120,
    yearRate: 80,
    totalTerm: 80,
    assetNo: 200,
    product: 120,
    remark: 200
  }
}

export default settings
